module BetsHelper
  def stadistics match
    link_to "estadisticas", "http://es.fifa.com/worldfootball/statisticsandrecords/headtohead/team1=#{match.team_local.abreviation}/team2=#{match.team_visitor.abreviation}/code=17/index.html", :target => "blank"
  end
  
  def team_image team
    image_tag "countries/#{team.abreviation.upcase}.gif"
  end
  
  def team_avatar team
    r = image_tag "countries/#{team.abreviation.upcase}.gif"
    r += "&nbsp;"
    r += team.name
  end
end
